package com.springboot.cloud.seckill.feign;

import com.springboot.cloud.common.core.entity.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author godyao
 * @date 2022/3/26
 */
@FeignClient(value = "seckill-service", fallback = SeckillFeignFallBack.class)
public interface SeckillFeign {
    @GetMapping("/secKill/updateStock")
    Result<Void> updateStockByGoodsId(Long goodsId, Integer stock);
}
